package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Stiofan on 2017/1/16.
 */
@Entity
@Table(name = "DJ_TDJCXX")
public class DjTdjcxx {
    private String tdbh;
    private String tdzdh;
    private String tdbjszD;
    private String tdbjszX;
    private String tdbjszN;
    private String tdbjszB;
    private String xzqhdsDm;
    private String xzqhxqDm;
    private String jdxzDm;
    private String zldzSqjqDm;
    private String zldzLh;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;
    private String yxbz;
    private String sjgsqs;
    private String ssglyDm;
    private BigDecimal tdzmj;
    private String zfrDm;
    private Timestamp zfrq;
    private String zfyy;
    private String zldzDlxdDm;
    private String tdxzDm;
    private String tdytDm;
    private BigDecimal tdzyz;
    private BigDecimal tdzynse;

    @Id
    @Column(name = "TDBH", nullable = false, length = 20)
    public String getTdbh() {
        return tdbh;
    }

    public void setTdbh(String tdbh) {
        this.tdbh = tdbh;
    }

    @Basic
    @Column(name = "TDZDH", nullable = true, length = 19)
    public String getTdzdh() {
        return tdzdh;
    }

    public void setTdzdh(String tdzdh) {
        this.tdzdh = tdzdh;
    }

    @Basic
    @Column(name = "TDBJSZ_D", nullable = true, length = 50)
    public String getTdbjszD() {
        return tdbjszD;
    }

    public void setTdbjszD(String tdbjszD) {
        this.tdbjszD = tdbjszD;
    }

    @Basic
    @Column(name = "TDBJSZ_X", nullable = true, length = 50)
    public String getTdbjszX() {
        return tdbjszX;
    }

    public void setTdbjszX(String tdbjszX) {
        this.tdbjszX = tdbjszX;
    }

    @Basic
    @Column(name = "TDBJSZ_N", nullable = true, length = 50)
    public String getTdbjszN() {
        return tdbjszN;
    }

    public void setTdbjszN(String tdbjszN) {
        this.tdbjszN = tdbjszN;
    }

    @Basic
    @Column(name = "TDBJSZ_B", nullable = true, length = 50)
    public String getTdbjszB() {
        return tdbjszB;
    }

    public void setTdbjszB(String tdbjszB) {
        this.tdbjszB = tdbjszB;
    }

    @Basic
    @Column(name = "XZQHDS_DM", nullable = true, length = 6)
    public String getXzqhdsDm() {
        return xzqhdsDm;
    }

    public void setXzqhdsDm(String xzqhdsDm) {
        this.xzqhdsDm = xzqhdsDm;
    }

    @Basic
    @Column(name = "XZQHXQ_DM", nullable = true, length = 6)
    public String getXzqhxqDm() {
        return xzqhxqDm;
    }

    public void setXzqhxqDm(String xzqhxqDm) {
        this.xzqhxqDm = xzqhxqDm;
    }

    @Basic
    @Column(name = "JDXZ_DM", nullable = true, length = 9)
    public String getJdxzDm() {
        return jdxzDm;
    }

    public void setJdxzDm(String jdxzDm) {
        this.jdxzDm = jdxzDm;
    }

    @Basic
    @Column(name = "ZLDZ_SQJQ_DM", nullable = true, length = 11)
    public String getZldzSqjqDm() {
        return zldzSqjqDm;
    }

    public void setZldzSqjqDm(String zldzSqjqDm) {
        this.zldzSqjqDm = zldzSqjqDm;
    }

    @Basic
    @Column(name = "ZLDZ_LH", nullable = true, length = 50)
    public String getZldzLh() {
        return zldzLh;
    }

    public void setZldzLh(String zldzLh) {
        this.zldzLh = zldzLh;
    }

    @Basic
    @Column(name = "LRR_DM", nullable = false, length = 11)
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ", nullable = false)
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM", nullable = true, length = 11)
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ", nullable = true)
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Basic
    @Column(name = "YXBZ", nullable = false, length = 1)
    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    @Basic
    @Column(name = "SJGSQS", nullable = true, length = 11)
    public String getSjgsqs() {
        return sjgsqs;
    }

    public void setSjgsqs(String sjgsqs) {
        this.sjgsqs = sjgsqs;
    }

    @Basic
    @Column(name = "SSGLY_DM", nullable = true, length = 11)
    public String getSsglyDm() {
        return ssglyDm;
    }

    public void setSsglyDm(String ssglyDm) {
        this.ssglyDm = ssglyDm;
    }

    @Basic
    @Column(name = "TDZMJ", nullable = true, precision = 2)
    public BigDecimal getTdzmj() {
        return tdzmj;
    }

    public void setTdzmj(BigDecimal tdzmj) {
        this.tdzmj = tdzmj;
    }

    @Basic
    @Column(name = "ZFR_DM", nullable = true, length = 11)
    public String getZfrDm() {
        return zfrDm;
    }

    public void setZfrDm(String zfrDm) {
        this.zfrDm = zfrDm;
    }

    @Basic
    @Column(name = "ZFRQ", nullable = true)
    public Timestamp getZfrq() {
        return zfrq;
    }

    public void setZfrq(Timestamp zfrq) {
        this.zfrq = zfrq;
    }

    @Basic
    @Column(name = "ZFYY", nullable = true, length = 300)
    public String getZfyy() {
        return zfyy;
    }

    public void setZfyy(String zfyy) {
        this.zfyy = zfyy;
    }

    @Basic
    @Column(name = "ZLDZ_DLXD_DM", nullable = true, length = 11)
    public String getZldzDlxdDm() {
        return zldzDlxdDm;
    }

    public void setZldzDlxdDm(String zldzDlxdDm) {
        this.zldzDlxdDm = zldzDlxdDm;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DjTdjcxx djTdjcxx = (DjTdjcxx) o;

        if (tdbh != null ? !tdbh.equals(djTdjcxx.tdbh) : djTdjcxx.tdbh != null) return false;
        if (tdzdh != null ? !tdzdh.equals(djTdjcxx.tdzdh) : djTdjcxx.tdzdh != null) return false;
        if (tdbjszD != null ? !tdbjszD.equals(djTdjcxx.tdbjszD) : djTdjcxx.tdbjszD != null) return false;
        if (tdbjszX != null ? !tdbjszX.equals(djTdjcxx.tdbjszX) : djTdjcxx.tdbjszX != null) return false;
        if (tdbjszN != null ? !tdbjszN.equals(djTdjcxx.tdbjszN) : djTdjcxx.tdbjszN != null) return false;
        if (tdbjszB != null ? !tdbjszB.equals(djTdjcxx.tdbjszB) : djTdjcxx.tdbjszB != null) return false;
        if (xzqhdsDm != null ? !xzqhdsDm.equals(djTdjcxx.xzqhdsDm) : djTdjcxx.xzqhdsDm != null) return false;
        if (xzqhxqDm != null ? !xzqhxqDm.equals(djTdjcxx.xzqhxqDm) : djTdjcxx.xzqhxqDm != null) return false;
        if (jdxzDm != null ? !jdxzDm.equals(djTdjcxx.jdxzDm) : djTdjcxx.jdxzDm != null) return false;
        if (zldzSqjqDm != null ? !zldzSqjqDm.equals(djTdjcxx.zldzSqjqDm) : djTdjcxx.zldzSqjqDm != null) return false;
        if (zldzLh != null ? !zldzLh.equals(djTdjcxx.zldzLh) : djTdjcxx.zldzLh != null) return false;
        if (lrrDm != null ? !lrrDm.equals(djTdjcxx.lrrDm) : djTdjcxx.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(djTdjcxx.lrrq) : djTdjcxx.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(djTdjcxx.xgrDm) : djTdjcxx.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(djTdjcxx.xgrq) : djTdjcxx.xgrq != null) return false;
        if (yxbz != null ? !yxbz.equals(djTdjcxx.yxbz) : djTdjcxx.yxbz != null) return false;
        if (sjgsqs != null ? !sjgsqs.equals(djTdjcxx.sjgsqs) : djTdjcxx.sjgsqs != null) return false;
        if (ssglyDm != null ? !ssglyDm.equals(djTdjcxx.ssglyDm) : djTdjcxx.ssglyDm != null) return false;
        if (tdzmj != null ? !tdzmj.equals(djTdjcxx.tdzmj) : djTdjcxx.tdzmj != null) return false;
        if (zfrDm != null ? !zfrDm.equals(djTdjcxx.zfrDm) : djTdjcxx.zfrDm != null) return false;
        if (zfrq != null ? !zfrq.equals(djTdjcxx.zfrq) : djTdjcxx.zfrq != null) return false;
        if (zfyy != null ? !zfyy.equals(djTdjcxx.zfyy) : djTdjcxx.zfyy != null) return false;
        if (zldzDlxdDm != null ? !zldzDlxdDm.equals(djTdjcxx.zldzDlxdDm) : djTdjcxx.zldzDlxdDm != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = tdbh != null ? tdbh.hashCode() : 0;
        result = 31 * result + (tdzdh != null ? tdzdh.hashCode() : 0);
        result = 31 * result + (tdbjszD != null ? tdbjszD.hashCode() : 0);
        result = 31 * result + (tdbjszX != null ? tdbjszX.hashCode() : 0);
        result = 31 * result + (tdbjszN != null ? tdbjszN.hashCode() : 0);
        result = 31 * result + (tdbjszB != null ? tdbjszB.hashCode() : 0);
        result = 31 * result + (xzqhdsDm != null ? xzqhdsDm.hashCode() : 0);
        result = 31 * result + (xzqhxqDm != null ? xzqhxqDm.hashCode() : 0);
        result = 31 * result + (jdxzDm != null ? jdxzDm.hashCode() : 0);
        result = 31 * result + (zldzSqjqDm != null ? zldzSqjqDm.hashCode() : 0);
        result = 31 * result + (zldzLh != null ? zldzLh.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        result = 31 * result + (yxbz != null ? yxbz.hashCode() : 0);
        result = 31 * result + (sjgsqs != null ? sjgsqs.hashCode() : 0);
        result = 31 * result + (ssglyDm != null ? ssglyDm.hashCode() : 0);
        result = 31 * result + (tdzmj != null ? tdzmj.hashCode() : 0);
        result = 31 * result + (zfrDm != null ? zfrDm.hashCode() : 0);
        result = 31 * result + (zfrq != null ? zfrq.hashCode() : 0);
        result = 31 * result + (zfyy != null ? zfyy.hashCode() : 0);
        result = 31 * result + (zldzDlxdDm != null ? zldzDlxdDm.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "TDXZ_DM", nullable = true, length = 2)
    public String getTdxzDm() {
        return tdxzDm;
    }

    public void setTdxzDm(String tdxzDm) {
        this.tdxzDm = tdxzDm;
    }

    @Basic
    @Column(name = "TDYT_DM", nullable = true, length = 1)
    public String getTdytDm() {
        return tdytDm;
    }

    public void setTdytDm(String tdytDm) {
        this.tdytDm = tdytDm;
    }

    @Basic
    @Column(name = "TDZYZ", nullable = true, precision = 2)
    public BigDecimal getTdzyz() {
        return tdzyz;
    }

    public void setTdzyz(BigDecimal tdzyz) {
        this.tdzyz = tdzyz;
    }

    @Basic
    @Column(name = "TDZYNSE", nullable = true, precision = 2)
    public BigDecimal getTdzynse() {
        return tdzynse;
    }

    public void setTdzynse(BigDecimal tdzynse) {
        this.tdzynse = tdzynse;
    }
}
